<?php

namespace App\Requests;

class YouzanApiRequest extends BaseFormRequest
{
    public function rules()
    {
        $request_key = $this->getRequestKey();
        if ($request_key == 'GET/api/youzan/items_onsale') {
            return [
                'page_size' => 'int|nullable',
                'page' => 'int|nullable',
                'order_by' => 'string|nullable',
                'query' => 'string|nullable',
                'tag_id' => 'int|nullable',
                'update_time_end' => 'int|nullable',
                'update_time_start' => 'int|nullable'
            ];
        }
        return [];
    }
}